package com.moodbox.server.common.config;

import io.jsonwebtoken.SignatureAlgorithm;
import io.jsonwebtoken.security.Keys;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.security.Key;

/**
 * JWT配置类
 */
@Configuration
public class JwtConfig {

    /**
     * 创建并提供JWT签名密钥
     * @return JWT签名密钥
     */
    @Bean
    public Key jwtSecretKey() {
        return Keys.secretKeyFor(SignatureAlgorithm.HS256);
    }
} 